<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>专业零散工人信息发布平台</title>
<meta http-equiv="description" content="  专业零散工人信息发布平台" />
<meta http-equiv="keywords" content="找工人、装修工人,装修公司,装修材料,电话,团购、"/>
<meta http-equiv="content-type" content="text/html;charset=utf-8"/>
<link rel="stylesheet" href="styles/style.css" type="text/css"/>
<script type="text/javascript" src="scripts/jquery.js"></script>
<style type="text/css">
<!--
#navbar a.first:link,#navbar a.first:visited,#navbar a.firsthover {background:url(images/nav_on.gif) no-repeat; color:#117AB1}
	.black_overlay{ 
            display: none; 
            position: absolute!important; 
            top: 0px; 
            left: 0px; 
            width:100%; 
            height:100%!important 
            background-color:#eee;
            z-index:1001; 
            -moz-opacity: 0.8; 
            opacity:.80; 
            filter: alpha(opacity=80); 
        } 
        .white_content { 
            display: none; 
            position: absolute; 
            top: 25%; 
            left: 25%; 
            width: 300px; 
            height: 200px; 
            padding: 16px; 
            border: 16px solid orange; 
            background-color: white; 
            z-index:1002; 
            overflow: auto; 
            text-align: center;
            vertical-align: middle;
        }
-->  
</style>

<script type="text/javascript" >
	function doSearch(){
  		var searchKey = document.getElementById("searchValue").value;
  		window.location.href="PublishInfo/list.do?profile="+searchKey+"&cityTwo="+searchKey+"&cityThree="+searchKey+"&cityOne="+searchKey;
  	}
	function doLogin(){
		var json ={};
		json.loginName = document.getElementById("loginName").value;
		json.password = document.getElementById("password").value;
		json.rememberMe = document.getElementById("rememberMe").value;
		$.ajax(
			{url:"Login/ajaxLogin.do",
			data:json,
			dataType:"json",
			success:function responseData(jsonData){
				if(jsonData.code==1){
					document.getElementById("welcomeMsg").innerText='欢迎您：'+jsonData.memberInfo.loginName;
					document.getElementById("memberLink").style.display='';
			  		document.getElementById("exitLink").style.display='';
			  		document.getElementById("loginLink").style.display='none';
			  		document.getElementById("registerLink").style.display='none';
			  		document.getElementById("loginName").value="";
			  		document.getElementById("password").value="";
			  		
			  		//document.getElementById("lightDiv").style.display='block';
					//document.getElementById("fade").style.display='block';
					
					$("#lightDiv").toggle();
					
					//setTimeout("$('#lightDiv').css('display','none')",3000);
					
					document.getElementById("autoRedirect").style.display ="";
					for(var i = 0; i <= sec; i++) {
						 window.setTimeout("TimeUpdate(" + i + ")", i * 1000);
					}
					window.setTimeout("$('#lightDiv').css('display','none')", wait); 
					 //$("#lightDiv").fadeOut(3000)
					
				}else if(jsonData.code==0){
					alert("用户名不存在");
				}else if(jsonData.code==-1){ 
					alert("密码错误");
				}else{
					//alert("----");
				}
			}
			}
		);
	}
	
	var sec = 5;
	var wait = sec * 1000;
	function TimeUpdate(num) {
	 if(num != sec) {
	  var pntNum = (wait / 1000) - num;
	  document.getElementById("autoRedirect").innerText = "等待[" + pntNum + "]秒，系统转到首页";
	 }
	}
	
	function TimeOk() {
	 window.location= "${ctx}/Login/indexLogin.do";
	}
	 
	document.onkeydown = function()
	{
	    if (event.keyCode == 13)
	    {
	        event.returnValue=false;
	        event.cancel = true;
	        doLogin();
	    }
	};
	
	function loginBlur(){
		if(event.srcElement.value=="")
			event.srcElement.value="登录名/ 邮箱";
	}
	
	function loginFocus(){
		//alert(event.srcElement.value);
		if(event.srcElement.value=="登录名/ 邮箱")
			event.srcElement.value="";
	}
	
</script>
</head>

<body>
<div id="fade" class="black_overlay">&nbsp;</div> 
<div class="topBar">
		<div class="twidth">
			<div id="currentCity">
				<font>成都</font><a href="#">切换城市</a>
				<label id="welcomeMsg" style="padding-left:10px">
				   亲爱的游客，您好！
				</label>
			</div>
			<div id="topUser">
				<a href="PublishInfo/create.do" class="postMsg">免费发布信息</a>
				<a id="memberLink" style="display:none" href="MemberCenter/index.do">会员中心</a>
				<a id="exitLink" style="display:none" href="Login/exit.do">退出</a>
				<a id="loginLink" href="Login/indexLogin.do">我要登录</a>
				<a id="registerLink" href="Register/indexMembers.do">我要注册</a>
				<a href="javascript:void(0);" onClick="window.external.AddFavorite(document.location.href,document.title)">加入收藏</a>
				<a href="#">设为首页</a>
			</div>
		</div>
	</div>

<div class="twidth">

<div id="logo"><img src="images/logo.jpg" /></div>

<div id="sitehead">
<div class="l"></div>
<div class="r"></div>
<div class="m">
	<!-- 
     <table width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr align="center">
        <td width="160"><a href=""><img src="pic/logo.gif" border="0" alt="" width="185" height="53" /></a></td>
        <td align="right"><a href="" target="_blank"><img src="upload/1.jpg" alt="" width="759" height="73" /></a></td>
	</tr>
     </table>-->
</div>
</div>

<div id="navbar">
<div class="l"></div>
<div class="r"></div>
<div class="m">
	<a href="index.html"  class="first">首页</a><a href="Index/index.do">找工人</a><a href="#">工厂招工</a><a href="#">热门职位</a><a 
href="#" title="6">我的社区</a>
	
<div id="search" >
			<input type="text"  id="searchValue" name="searchValue"class="inputbg" size="20" value=""/>
			　<button type="button" onclick="doSearch()">搜索</button>
</div>
</div>
</div>

	<!-- 
	<div id = "indexArea">
	<div class="l"></div>
	<div class="r"></div>
	<div class="m" >
		
	</div>
	</div> -->

</div>


<div class="twidth">

<div id="middle">
<div style="width:720px;float:left;padding:0px;margin:0px">
	<!-- 
	<div id="indexArea" >
	<div class="l"></div>
	<div class="r"></div>
	<div class="m" >

	</div>
	</div> -->
	
	<div class="box mR wP" style="width:720px;float:left;">
		<div class="tl"></div>
		<div class="tr"></div>
		<div class="star">
			
		</div>
		
		<div class="wrapper">
		<div class="ml"></div>
		<div class="mr"></div>
		<div class="mm">
			<div class="clear"></div>
			<ul class="nl starList">
			
			<#list workerList as worker>
			<li>
			<a href="PublishInfo/show.do?publishInfoId=${worker.publishInfoId}" target="_blank"> ${worker.category.categoryName} - ${worker.name} - 工作${worker.workAge}年</a>
			<a  target="_blank" href="/website/PublishInfo/list.do" class="addr">${worker.cityTwo}</a>
			-<a target="_blank" href="/website/PublishInfo/list.do?cityId=${worker.cityId}" class="addr">${worker.cityThree}</a>
			<p>
				${worker.profile}
			</p>
			</li>
			</#list>
	
			</ul>
			<div class="clear"></div>
		</div>

		</div>

		<div class="bl"></div>
		<div class="br"></div>
		<div class="bm"></div>

	</div>
</div>

<div style="float:left;width:228px;padding: 0px;margin:0 0 0 8px;_margin:0px">	
	<div class="lframe" style="float:left;width:228px;">
	<div class="tl"></div>
	<div class="tr"></div>
	<div class="memberLogin">
	</div>
	<div class="wrapper">
	<div class="ml"></div>
	<div class="mr"></div>
	<div class="mm" style="padding:0px;">
		<ul class="dnl">
		<li style="_margin-bottom:10px;margin-top:0px;padding-top:8px;">
		<span>用户名：</span><input type="text" name="loginName" id="loginName" onblur="loginBlur()" onfocus="loginFocus()" value="登录名/ 邮箱" size="18" class="inputbg" ></li>
		<li  style="_margin-bottom:10px;;margin-top:0px;">
		<span>密&nbsp;&nbsp;&nbsp;码：</span><input type="password" name="password" id="password" class="inputbg" size="20" ></li>
		<li style="margin: 0px 0px 0px 40px">
		<input type="checkbox" name="rememberMe" id="rememberMe" value="true" /><label for="rememberMe">30天不用登陆</label>
		</li> 		
		<li style="text-align:center;_margin-bottom:8px;;margin-top:0px;margin-bottom:8px;">
		 
		<input type="button" onclick="doLogin();" class="btn"  value="登录" />
		<a href="" style="padding:0px;margin:0px">忘记密码</a> </li>
		</li>

		</ul>
		<div class="clear"></div>
	</div>
	</div>
	<div class="bl"></div>
	<div class="br"></div>
	<div class="bm"></div>
	</div>

	<div class="lframe" style="float:left;width:228px;">
	<div class="tl"></div>
	<div class="tr"></div>
	<div class="service">
		
	</div>
	<div class="wrapper">
	<div class="ml"></div>
	<div class="mr"></div>
	<div class="mm" style="padding:4px; overflow:hidden">
		<ul class="dnl">
		<li><a href="help/member.html" target="_blank">
		<span class="diggN">1</span>会员权益</a></li>
		<li><a href="help/novice.html" target="_blank">
		<span class="diggN">2</span>新手上路</a></li>
		<li><a href="help/service.html" target="_blank"">
		<span class="diggN">3</span>服务流程</a></li>
		<li><a href="help/pointRule.html" target="_blank">
		<span class="diggN">6</span>积分规则</a></li>
		<li><a href="help/credit.html" target="_blank">
		<span class="diggN">7</span>信用体系</a></li>
		</ul>
		<div class="clear"></div>
	</div>
	</div>
	<div class="bl"></div>
	<div class="br"></div>
	<div class="bm"></div>
	</div>

</div>


</div>
<!--// end content -->

<div style="float:left;width:100%">
<hr style="width: 100%;height: 1px;color: #aaa" />
<div id="link">
    <span style="color:#222;">友情链接</span>
    <div style="margin-top: 10px">
	   	<a href="http://www.sina.com" target="_blank">新浪</a>	
	   	<a href="http://www.baidu.com" target="_blank">百度</a>	
	   	<a href="http://www.zhaogr.com" target="_blank">找工人网</a>	
	   	<a href="www.zhaogr.com" target="_blank">测试</a>	
	   	</div>
</div>


<div id="footer">
    <div class="clearfix footer-inner">
        <p class="extralink">
            <a target="_blank" href="">关于我们</a> - 
			<a target="_blank" href="">联系我们</a> - 
			<a target="_blank" href="">诚聘英才</a> -
			<a target="_blank" href="">合作服务</a> 
        </p>
         <p class="copyright">All rights reserved &copy; <span>www.zhaogr.com</span> 2010
		    &nbsp;&nbsp;&nbsp;&nbsp;
		<script src=" http://s4.cnzz.com/stat.php?id=2844083&web_id=2844083&show=pic" language="JavaScript"></script></p>
        <p class="extrainfo">
          电话： 　传真：    <br />
        </p>
    </div>
</div>
</div>
</div>

<div id="lightDiv" class="white_content" >
	<p id="welcomeDiv" style="font-size: 16px;margin: 40px 0px 20px 0px">欢迎您 ,您已登陆成功</p>
	<label id="autoRedirect" style="display:none"></label>
</div>
</body>
<script type="text/javascript">
	var json ={};
		$.ajax(
			{url:"Login/checkLogin.do",
			data:json,
			dataType:"json",
			success:function responseData(jsonData){
				if(jsonData.code==1){
					document.getElementById("welcomeMsg").innerText='欢迎您：'+jsonData.memberInfo.loginName;
					document.getElementById("memberLink").style.display='';
			  		document.getElementById("exitLink").style.display='';
			  		document.getElementById("loginLink").style.display='none';
			  		document.getElementById("registerLink").style.display='none';
				}else{
					document.getElementById("welcomeMsg").innerText='亲爱的游客，您好！';
				}
			}
			}
		);
</script>
</html>

